package com.lanchetech.common.enums;

import lombok.Getter;

@Getter
public enum FrontCategoryCacheEnum {
    SPECIAL_SELECT(30L, "精选"),
    RANK(36L, "排行榜"),
    ;

    private Long frontCategoryId;
    private String remark;

    FrontCategoryCacheEnum(Long frontCategoryId, String remark) {
        this.frontCategoryId = frontCategoryId;
        this.remark = remark;
    }

    public static Boolean isInFrontCategoryCache(Long id) {
        for (FrontCategoryCacheEnum status : FrontCategoryCacheEnum.values()) {
            if (status.getFrontCategoryId().equals(id)) {
                return true;
            }
        }
        return false;
    }
}
